package com.eastfair.venueservice.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.annotation.model.BaseVoGroupClass;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * 服务库存
 * </p>
 *
 * @author linan
 * @since 2022-07-14
 */
@Data
@ApiModel(value = "ServiceInventoryVO", description = "服务库存")
public class ServiceInventoryVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long id;

    /**
     * 是否启用（确认状态）：1是 已确认；0否 未确认
     */
    @ApiModelProperty(value = "是否启用（确认状态）：1是 已确认；0否 未确认")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long tenantId;
    /**
     * 服务项id
     */
    @ApiModelProperty(value = "服务项id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long serviceItemId;
    /**
     * 服务分类id
     */
    @ApiModelProperty(value = "服务分类id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long serviceCategoryId;
    /**
     * 服务规格id
     */
    @ApiModelProperty(value = "服务规格id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long serviceSpecsId;
    /**
     * 库存编码
     */
    @ApiModelProperty(value = "库存编码")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "库存编码长度不能超过255")
    private String inventoryCode;
    /**
     * 服务库存
     */
    @ApiModelProperty(value = "服务库存")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal inventoryNum;
    /**
     * 服务预警值
     */
    @ApiModelProperty(value = "服务预警值")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal earlyWarningValue;

    /**
     * 服务名称
     */
    @ApiModelProperty(value = "服务名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String serviceName;

    /**
     * 创建时间开始
     */
    @ApiModelProperty(value = "创建时间开始")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private LocalDateTime createTime;

    /**
     * 服务分类id
     */
    @ApiModelProperty(value = "服务分类id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String serviceCategoryName;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private Long createdBy;

    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称")
    private String createdName;

    /**
     * 服务图片
     */
    @ApiModelProperty(value = "服务图片")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String picUrl;
    /**
     * 服务规格名称
     */
    @ApiModelProperty(value = "服务规格名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String serviceSpecsName;

    /**
     * 来源系统
     */
    @ApiModelProperty(value = "来源系统")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String sourceProvider;

    /**
     * 供应商id
     */
    @ApiModelProperty(value = "供应商id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long serviceProviderId;

    /**
     * 供应商名称
     */
    @ApiModelProperty(value = "供应商名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String serviceProviderName;

    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long exhibitionManageId;


    /**
     * 最后更新时间
     */
    @ApiModelProperty(value = "展会id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private LocalDateTime updateTime;

}
